package homework12月3号.h3;

public class Father {
    private String name="张三";
    public class Child{
        void introFather(){
            System.out.println(new Father().getName());
        }
    }
    public Father() {
    }

    public Father(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
